package cn.edu.ctgu.cyf;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

public class YesterDate {

    public static String getPreviousDate(String inputDate) {

        try {
            LocalDate date = LocalDate.parse(inputDate);
            LocalDate previousDate = date.minus(1, ChronoUnit.DAYS);
            return previousDate.toString();
        } catch (Exception e) {
            return "不可能";
        }
    }
}
